package com.ruoyi.chat.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;

//@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        Contact contact = new Contact();
        contact.setEmail("wangzi102410@163.com@163.com");
        contact.setName("毛毛虫");
        contact.setUrl("http://www.huakai.wang");
        return new OpenAPI()
                .info(new Info()
                        .title("ChatQCU接口文档")
                        .version("1.0")
                        .contact(contact)
                        .description("ChatQCU接口文档"));
    }
}
